home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / dosguide.exe / HELPDOS.ZIP / PIPING.HLP < prev    next >
Text File  |  1987-04-05  |  1KB  |  39 lines

  1. ------------------------  PIPING ("|") - A DOS Feature  ------------------------
  2.  
  3. PIPING allows programs to be chained together with automatic redirection of the
  4.    screen output of one program as the keyboard input to another program.
  5.  
  6. FORMAT:   |
  7.  
  8. REMARKS:
  9.  
  10.    The bar |, which activates piping, is placed between commands.  DOS uses
  11.    special temporary files of the name %PIPEx.$$$ to pass screen output to the
  12.    chained program.
  13.  
  14. EXAMPLES:
  15.  
  16.    Note: SORT and MORE, used in the following examples, are external DOS
  17.          commands.  DOS must have access to these command files or the
  18.          command will fail with the message "Bad command or file name."
  19.  
  20.  
  21. Display sorted information for the current directory on the default drive.  The
  22. screen output of the DIR command is passed as keyboard input to the SORT
  23. command:
  24.  
  25.            DIR | SORT     or     DIR|SORT    (spaces around | are optional)
  26.  
  27.  
  28. Display the file MYFILE and pause when the screen is full.  MYFILE is in the
  29. current directory on the default drive:
  30.  
  31.            TYPE MYFILE | MORE
  32.  
  33.  
  34. Display the directory information for files in the current directory of the
  35. default drive that have the string "FY85" in the filename.  Sort the display and
  36. present it one screen at a time:
  37.  
  38.            DIR | FIND "FY85" | SORT | MORE
  39.